package com.td.module.produce.convert.husbandry;

import com.td.framework.common.pojo.PageResult;
import com.td.module.produce.controller.admin.husbandry.vo.HusbandryCreateReqVO;
import com.td.module.produce.controller.admin.husbandry.vo.HusbandryExcelVO;
import com.td.module.produce.controller.admin.husbandry.vo.HusbandryRespVO;
import com.td.module.produce.controller.admin.husbandry.vo.HusbandryUpdateReqVO;
import com.td.module.produce.dal.dataobject.husbandry.HusbandryDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 生产管理农事 Convert
 *
 * @author 吴佰强
 */
@Mapper
public interface HusbandryConvert {

    HusbandryConvert INSTANCE = Mappers.getMapper(HusbandryConvert.class);

    HusbandryDO convert(HusbandryCreateReqVO bean);

    HusbandryDO convert(HusbandryUpdateReqVO bean);

    HusbandryRespVO convert(HusbandryDO bean);

    List<HusbandryRespVO> convertList(List<HusbandryDO> list);

    PageResult<HusbandryRespVO> convertPage(PageResult<HusbandryDO> page);

    List<HusbandryExcelVO> convertList02(List<HusbandryDO> list);

}
